package com.ruoyi.common.enums;

/**
 * 会员状态
 * 
 * @author ruoyi
 */
public enum MembersStatus
{
    //会员工号已存在
    MEMBERS_NUM_EXIST(201, "工号已存在"),
    //用户账号已存在
    USER_ACCOUNT_EXIST(202, "账号已存在"),
    //操作成功
    SUCCESS(200, "操作成功"),
    //教职工角色不存在
    TEACHER_ROLE_NOT_EXIST(203, "教职工角色不存在"),
    //教职工（成员）添加失败
    TEACHER_ADD_FAIL(204, "教职工新增失败"),
    //用户添加失败
    USER_ADD_FAIL(205, "用户添加失败"),
    //教职工不存在
    TEACHER_NOT_EXIST(207, "教职工不存在"),
    USER_NOT_EXIST(210, "用户不存在"),
    //教职工删除失败
    TEACHER_DELETE_FAIL(206, "教职工删除失败"),
    //删除用户失败
    USER_DELETE_FAIL(208, "用户删除失败"),
    //角色删除失败
    ROLE_DELETE_FAIL(209, "角色删除失败"),
    //操作失败
    OPERATE_FAIL(500, "操作失败"),
    //会员不存在
    UNION_MEMBERS_NOT_EXIST(301, "会员不存在"),
    //会员角色不存在
    UNION_MEMBERS_ROLE_NOT_EXIST(302, "会员角色不存在"),
    //会员添加失败
    UNION_MEMBERS_ADD_FAIL(303, "会员添加失败"),
    //会员删除失败
    UNION_MEMBERS_DELETE_FAIL(304, "会员删除失败"),
    ;

    private final Integer code;
    private final String info;

    MembersStatus(Integer code, String info)
    {
        this.code = code;
        this.info = info;
    }

    public Integer getCode()
    {
        return code;
    }

    public String getInfo()
    {
        return info;
    }
}
